﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Spaanjaars.ContactManager.UX.MVC.ViewModels.ContactPersonListViewModel>" %>
<%@ Import Namespace="Spaanjaars.ContactManager.Services.ViewModels" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	View All Contact People
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>People</h2>

    <ul>
    <% foreach(ContactPersonViewModel person in Model.ContactPersons)
       {
    %>
        <li><% Html.ActionLink(person.Name, "Index", "ContactPersonView", new { Id = person.Id });  %></li>
    <%  
       }%>
    </ul>

</asp:Content>
